improved naming rubies when both path and name specified, fix #2663