Fix error message for one more fail case
path.extname(arg) gives a different fail case than the current regex.
No deeper insight to why it works, but it fixes #707