[PLAT-3802] Recognise -D parameters for JVM and the Maven "target" rather than "build" folder