Related to #12263, this patch removes the usage of expanduser in favor of the path 'type' for the module options of src and dest