C utility to abbreviate directory names