Fix for ignored trailing path separator in prefix.
Output files are not formatted in accordance with go fmt.
Merge pull request #15 from pblaszczyk/fix

Fix for handling prefix value and output not formatted according to go fmt.