only canonicalize directories