trying to use file command directly instead of python bindings since travis is failing inexplicably