Figure out default branch for the project instead of just using master

Fixes #154