Check for bash before sourcing bashrc_dispatch. .profile is read by multiple shells such as ubuntu's dash which cannot handle some .basrch_dispatch functionality like exporting functions.