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

Fixed #33