Moved -lsim to the LIBS env variable as it is too early in the command in the linker flags
Changed wrapper to pass correct arguments to sim

Placed file to be simulated in argv[0] passed to wrapper, then placed onto
end of argv passed to or1ksim_init. Changed argv passed to or1ksim_init to have
a hardcoded command word in the first argument.
changed command word passed from wrapper to or1ksim_init to be more sensible