Added support for file in the dist path

I added support for file in dist path.
You can specify a file name or directory in dist path.