Improved wget_wrapper to handle --directory-prefix and --no-host-directories parameters.