ENH: speed up doc compilation by checking for existing files