Resolve a directory that is either local, global or in the user's home directory.
npm install resolve-dir