modify bash_profile(500gpv2) : (1) add TMP directory (2) fix wrong if-case definition