Changing the fork/exec to spawn while launching the simulator

JRuby or any JVM implementation for Ruby can't do fork/exec. Changing
this to spawn so that it works without any change in JVM implementations
of Ruby
Merge pull request #1 from navaneeth/spawn

Changing the fork/exec to spawn while launching the simulator