Fixed phantomjs execution for paths with spaces