re #18 fix #18 fix problem when notes directory does not exist. It will create it automatically but a listdir stands in the way of the automatic creation