[backport-1.6]: booststrap/apply scripts are failing if they sylva-core is not a git repository.
A solution for issue
#3431 (closed)
needs to be backported to 1.6.x