Canonicalize every component of the script path