Allowed the use of relative paths with the -c argument.

Used canonicalizePath from System.Directory, adding a dependency on the
directory package.