adapt jna arch dir