Moved Environment.execute to utils.execute in order to re-use it

Also simplified execute() API:
Instead of taking a command and its arguments, it takes a command,
which is an iterable or a string.