Added support for scanning only one file instead of a directory

A simple and short patch for the most wanted feature