Fixed post-commit for paths with spaces