fix file listing in gists

and render notebook if there's only one

related to #300
Debug comment?