Removed duplicate commands.
Static analyzers need 'env'.

This ensures the package dependencies can be found during static analysis.
Static analysis needs env.