I am trying to create a script that would take the version of current WordPress installation and download the appropriate archive from wordpress.org. The server the script is ru