Scala 2.11 compatibility
Don't try to dump binary file in mock mode