Fix for https://github.com/xolvio/rtd/issues/86

Regex for fixing relative paths was not correct.