Fixed build scripts to work with paths that contain spaces.