Revert "this conditional did not work when the master is an ec2 instance"

This reverts commit aee27c722c385c4571d658aac218c4e8b5217776.
remove leftover from f183f4853f851b350a50f091d8e14f75653264f3