Fix cat

Added the infinite loop in cat if a file name is not present.