fix a regression where `rake spec' does not work on OS X platform

http://hipbyte.myjetbrains.com/youtrack/issue/RM-632