Use wrapper function of system() instead of vimproc#system()