build: adapt mkbasepot.sh to new structure