If the name of a non-main bundle is long, truncate it and append a hash.