Fix path resolving.