Various tweaks plus --version flag added

Added a --version flag that can be used to select the WordPress
version to be installed.

Fixed issue when not using multisite setup.