Added pre-release script

Fixed issue with sanity check