Various fixes and improvements to bin/ files.