Bugfix reg check

Closes issues #216 and #302, plus addresses a separate issue where vagrant wouldn't work using a samba share.