fixes #24 with path.resolve