fixed run_dir for ubuntu