Fixes for issue 3164 (again)...

...also updating .gitignore to ignore RubyMine working folder. Will cross update in GCode:
http://code.google.com/p/otwarchive/issues/detail?id=3164