fixed issue with plugins dir not existing