fixing bug with loading plugins with a directory file path not ending in /