allow relative paths for cli config option

If you are using the -c --config option the path has to be absolute. Switched to using path.resolve to allow relative paths.