Fixed a bug, where environment properties would be cleared during checking their validity.
Tidying to sort out the POM and distributions.