adding cwd to exec statements