modify run_linux to run from outside dir