make location of plugin dir a little more generic