Fix for allowing Env Options as Scalar/Hash with Errorhandling

This fix allows env options to be passed either as Scalar or as Hash, every other structure is handled by throwing an error.