script-functions: fix getbootparam/checkbootparam