Fix File.realdirpath and Implement Kernel.#__dir__

Fixes #2653 and #2814