Improved path handling, including quoted chars