Merge pull request #188 from natural-law/develop

Modify the logic of compiling scripts when building project.