t9146: replace test -d/-e/-f with appropriate test_path_is_* function