Replaced bash build script with phing