Fix a bug when adding /usr/local/sbin to $PATH