Fixed directory finding issues caused by Wordpresses default plugin functions