added __dirname to exculdes