commands: update ec2 to support rocks 6.2

few changes required by some function rename made in rocks 6.2