Use mode 0700 for SNN directories
Update tests to strip file:// from directory URIs