tidy up all the bin scripts and make them more registry friendly