Fixed a bug where permalink.txt would be empty if either the debug or silent flags were set.