Do the keystore bit in a friendly bash shell and fail early