Linux: Fixing issue where last path in PATH isn't used.