Realpath for loader