ruby v1.8XXX lacks Dir.exists?(dir)