Change paths to work with Nix package system

Nix has a non-standard file system layout. These changes stop
looking for bash in /bin and similar changes. It uses /usr/bin/env
to find locations of shells and other similar tricks.