changed some basic path handling in the 'run_' functions