Remove unnecessary path components

https://www.npmjs.org/doc/misc/npm-scripts.html#path