Fix quoting in pre_hooks to get it copmiling when folder name has spaces.