Use path.resolve for main