Improve cd-compile interface

- User can use cd-compile as function(like `(cd-compile "/foo/bar/baz/somedir/")`)
- Add error check whether the directory is existed.