Handle links without the '.rst' suffix.

This provides a similar behaviour as the GitHub wiki.