Add path sanity checks