cleanup and translation for bash profile template