run-with-env: Fix current environment not passed to the command