correctly check for file plugin installation

This version still cocks up actually loading the class
but at least it tries. Alas, commit I must.