Fix Raspberry Pi-related bug

The logic in my previous fix was faulty and worked only if **all** `cxxflags` contained `'arm'`. This pull request aims to fix this.