Allow usage of require.paths

Maintains support for versions of PhantomJS that don't support require.paths

ref #612