ec2 inventory plugin: fix whitespace around connection validity test