bugfix to build script, refs RM issue 3174

fixed bug where "copy" task was failing if the build directory did not already exist.