cat: fix problem with cat commands when catalogue is not opened