throw error on trailing slashes in GitHub paths

Fixes #447.