Move use_run_shm earlier