Fixed behavior when no file is given in CLI