Added support for -javaagent parameters.

This change ensures that "-javaagent:" parameters get passed to the JVM correctly. Previously they ended up as arguments to the main class rather than the JVM and consequently did not work.