Resolve the path in PhantomJS script when it `require` some scripts.