fixed warnings from ruby 2.1.0

some warnings occured from ruby 2.1.0 or later. This patch fix this problem.

warnings are followings:

```
warning: File.exists? is a deprecated name, use File.exist? instead
```