Ok, I think I have both fixed locally. I made the following 4 small changes:
Line 648 & 730:
/if (${Ini[${itemPrices},${thisItem},SellPriceMin]} != 1) {
...
}
to
/if (${Ini[${itemPrices},${thisItem},SellPriceMin]} != 0) {
...
}
and
Line 655 & 736:
/if...