change directory before running sanity check