Added dependency check for example subdirectories.