take trailing slash from npm in path