Fix for 'ec2:ssh' command when using stages