Bug 1106344 - Remove env file on gear delete

* Add cleanup for orphaned env files
* Add test coverage