Allow full path to markdown file in guide url field.

Refactored the guide filename and path detection a bit -
now also keeping a separate :dir field to reference the directory.
Using "url" field for that purpose seems awkward, so replaced
all these usages with :dir.

Fixes #584