Fixed a lack of directory presence detection