Where did you get the package from? It does appear that he version of download on HEAD and oacs-5-1 branch both have the same version number, which would confuse the installer. You definitely should not use any packages from HEAD with a 5.1.x install.