Lots of bugfixes.  Merged profile and bash_profile; only supporting bash now, not sh.

Signed-off-by: Paul Buonopane <paul+git@earth2me.com>