Changed installation order
Installation is now checking more needed dependencies