ls.go: Fix errors & a few changes

* help and version are undefined
* Added an errorChecker function
* Modified the getPath function to use os.Getwd if no path is given.