improve handling of non-github URLs