adjust warning text for directory target