when compressing paths, don't fail for long names

when a filename was even longer than the allowed maximum length,
the compressing path function just returned '...'