Modify PATH when running ./bin/bits directly and added some helper methods for external commands