Fix default runtime dir handling.