additional fork check and enhanced tests

Change-Id: Ifc60063966de7bf65b1ca70b5342cc887ac59b3e
Merge branch 'fork-feature' of https://github.com/amacarthur/gitlab-shell into github-push-fork-feature