Properly handle absolute paths