Use single capture index replacement string

This will handle both the $1 style and ${1:/downcase} styles in a
single replace call.
Remove leading dots from in capture index text

Having multiple consecutive dots would make the selector invalid

Closes atom/language-make#6