change to create.sst.anomalies to test for dir being NULL