Added realpath for when server uses symlinks