renamed parameter intermediateDir to projectDir and made GenerateScripts.sh more dynamic