ghe-restore: check maintenance mode is enabled.

Do this instead of just enabling it unconditionally.

Fixes #62.

CC @rtomayko for review.
Quote the path name here just in case GHE_REMOTE_DATA_DIR has spaces in dev / test environments.