Better error message from cat inside directories