Fixed build so PhantomJS is used automaically for stag/prod builds