Fix for issue #189

This should fix issue #189. The problem was that the test to validate the directories was not updated in issue #180. I've tested this on OSX with ArduinoIDE version 1.5.7 and 1.5.6-r2. I have not tested the change on other platforms.