fixes rm pgc files command in run_command