Improve PATH handling.