Made opts.plugin object consistent by removing projectDir