Fixes for jvm extra parameters and apps directory creation.