Fixed subdirectory validation