fixed issues where cookiecutter could not remove the dir