Fix makefile version extraction logic to handle alpha characters.