Changed build scripts in order to copy first the (possibly) new scripts and then to start the build