mkrelease: Add checks to ensure run from top-level directory of repository.