Mkwrapper fix3

fixes unrenamed variable from the last commit
adds argument parsing to mkwrapper