Fix of #520

would prefer `mkdir_p` but it's not a biggie