small refactoring, added scripts for Openmandriva
Merge pull request #167 from avokhmin/openmandriva

small refactoring, added scripts for Openmandriva