Fix malformed paths

(thanks to @OndrejMarsalek)
Merge branch 'v2.0' into v2.0-hrex