Add category to notes based on working dir name; correct for pro5's conversion of underscores in filenames to spaces.