Added control over fx-hack to environment variable and JVM property