Moved build phase run scripts to external files in /scripts.