move calculating of basepath into __init__

it was being calculated 3 or 4 times. also, move findplugin
into the class because it also uses basepath