fixed bin path search to work for console apps

When loading the plugins directory, the bin path search was only working for web projects. I changed it to also work for console apps.