Running pre and post hook fails

When the repo has a space in it's path the running pre and post hook fail