Function attempts to resolve the provided path. Allows for someone to use a npm package which provides hooks or a local file.