work around cairo-bug (long paths)

https://bugs.freedesktop.org/show_bug.cgi?id=59098