Fix bug where staging_domain was always set to a blank string. fixes #11