Fixed code for determining of master exists when in maintenance mode for issue #12 and #9.
Merge pull request #13 from dotmanila/master

Fixed code for determining of master exists when in maintenance mode for...