sgx-bins: fix filter logic

Change-Id: I29de67bd6ff8bb2f7695ee3810aa1e9d14ff8782