improved bundle name validation