set *err when too many components in CanonicalizePath
Merge pull request #849 from sgraham/set-err-canon-components

set *err when too many components in CanonicalizePath