add logic to prevent path.resolve from being called with a non string argument.
Merge pull request #34 from ProZachJ/master

prevent path.resolve from being called with a non string arg