Improve $PATH handling

Signed-off-by: Kare Nuorteva <kare.nuorteva@me.com>