refactored to divine new path to target rather than mess with PATH.
also switch output to stderr to avoid conflicts with git prompt
decoartions.