Fixed bug in mime detection.
Fixed #4 - Avoid exit() call within flex.
Forgot to remove printf() call