Filter unique 

- fix issue https://github.com/hpcugent/easybuild-framework/issues/485
- code cleanup