Don't generate return paths that we can't parse

Closes #298