Build pathnames taking into account the thread slug.