Use path.resolve to resolve absolute paths