Well you can cripple avast on that machine (e.g. from the recovery console) to see if it’s causing the troubles (i.e. deleting the DLL). E.g. rename the whole avast folder, that should do the trick.