Strip trailing slashes before stat'ing directories, and replace them when returning real paths
Updated exists callback semantics