Several changes:
1) active partition search moved to a separate function
2) added control on active partition LBA and size