Use require.resolve to properly look up the phantomjs path