REVIEW-2341: escape ` when generating StartScripts
REVIEW-2341: remove unused null checks and add some coverage for application run task with java default opts.