make release hook more flexible
Merge pull request #288 from dead-horse/release-hook

made release hook more flexible.