Optimize bash profile script