Copying profile scripts to temp directory and replacing /app with build
directory before sourcing them