We only need to do this calculation if the original method didn't work of just passing in plugin.file.default.  So all of this computation should be in the block below right?