Set proper run directory.