Fixed NullPointerException if using custom plugins folder