Fix reading of the nodes from the nodes file.

ssh consumes stdin.  We have to avoid it by feeding it with /dev/null:
    http://stackoverflow.com/a/20255135/830681