Resolve the path before storing it.