Adapt *bsd returned by software-version so that it can be used as a value for PLATFORM

Thanks to Kooda for pointing that out.

Also, prefer the PLATFORM value when it is set in the environment.
Add salmonella-diff to the list of required external tools

Thanks to Kooda for reporting that.