Added false postive check for directories