change default package to containing folder of output

This behaviour makes sense to me. If the output is in a sub-directory, the package name should probably be that of the directory.

So specifying `-o main/datapackage/bindata.go` should by default set the package to `datapackage`.

If `pkg` is provided, that value is not replaced. If the output is default or in the current directory, the package is still `main`.