Moving plugin path generation to where it belongs