refactor: eslint `no-path-concat`
refactor: make jshint and eslint happy
- `no-use-before-define`
refactor: eslint, don't redefine `path` locally
- `no-shadow`
refactor: eslint, prevent function from returning`undefined`
- `consistent-return`