Converted FsError to haiconf.ArgError
Moved fs checkers to a more reusable version