Fix build script to cater for spaces in the path