refactored build integration to be separated from appserver php build