Added better support for microsoft office document detection.