Detection of package system

This is necessary for few steps like setting $submiturl or $answer