Refine bashrc which compatible on Mac OS