Add basic builds and gpg signature checking
Enable script to work reasonably with branches