Remove unnecessary real path resolutions.