conditionally prepend `bin` and `sbin` directories to `$PATH`