CI_Encryption: Fix more errors and add a 'portability' test case