move snapshot_dir validation earlier so it can fail more quickly