Modified script to take command line arguments so it can easily be used to launch other applications (such as Feed The Beast)