Avoid using pwd which fails on some shells. Inject current system install into path when checking for programs for installation into non-system paths