Use path.resolve

Use path.resolve function to resolve absolute paths