Use default JAVA_OPTS from the conf file when using --debug option.

The ```--debug``` option was ignoring the conf file. Moved adding the debug options after the conf file was loaded. Also check that there are no debug options already present in the ```JAVA_OPTS```.