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

Fixes #33