linux: check if xbmc was installed as package before
move apt check to its own function,
 makes it easier to add other package managers later on