change resourceDir option to resourcesDir