Updates to cli tool to properly list files in a directory with gisting a directory.