Fixed issue with cli failing to open files without file path.