Code cleanup

- Remove unused assignment to null;
- Remove useless casting to String
- Remove useless checkState because ghostdriverpath is never null at this point
Why removing this? That's actually very useful to users.