Added patch to properly detect automake version