[scripts] proper function for check_platform() to verify if we are on trusty or wheezy. Thanks Christopher Bock (cb)