Add plugins dir and if_ check