More tweaks to support the Java FFI on turing

If the folder doesn't exist it will simply be ignored.