fix return value of set_logout()
avoid building of intermediate list in file locators
check if we can cd into a directory before inspecting it