Modify Arduino build config for IDE >= 1.5.7

Arduino IDE >= 1.5.7 Changed ARDUINO_PATH from `Contents/Resources/Java` to `Contents/Java`, mentioned in #2632
change BIN_PATH for new gc in Arduino IDE >= 1.5.7
Merge pull request #2633 from southwolf/patch-1

Modify Arduino build config for IDE >= 1.5.7