[CB-4952] check against /private/var as well

this is my attempt at fixing the following issue:
https://issues.apache.org/jira/browse/CB-4952