Modified conditions for MacOS
chane timing of export PATH
Add system's ruby execute path to PATH variable.