Removed bashism in bin/elasticsearch

Using == in an if-statement works in bash but not in dash (used in ubuntu)
Replacing == with = results in strictl POSIX compliance.
Need to make sure we always end up with a Cell, even if it's null.

Fixes #4544.
use the correct d option in getopt instead of the removed f