add indent.
remove unnecessary directory check.
remove unnecessary cat.
remove unnecessary subshell.
use strict syntax.
Merge pull request #41 from axsh/clearup

Clearup