automagically deduct repo name in some special cases