Fix #593 problem with `hugo -w`

This fixes #593