[.bashrc] improve darwin detection