packager: factorized some code and add compatibility with trusty ubuntu serie
packager: factorized some code and add compatibility with trusty ubuntu serie

gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine