[BUGFIX] Forgot to strip trailing slash in cleanPath()