Changed Dir.exist to a method call to please 1.8.7
Changed Dir.exist to a method call to please 1.8.7

Created dir_exists? because Dir.exists? doesn't exist in ruby 1.8.7. First CI build win!

klimkin/fig,klimkin/fig