Prevent empty folders after git checkout