Change 'master' to 'primary'; closes #573