Use realpath() so we only need to resolve true path once

There are reports that at least one opcode cacher can get a bit confused
when working with relative paths.