Modified: Minimize use of system method.

# minimize use of system method.

```system "mkdir ..." ``` -> ```Dir.mkdir```
```system "rmdir ..." ``` -> ```Dir.rmdir```
```system "rm ..."``` -> ```File.delete```