Modified the check_p and check_q function:
when these two functions is invoked,judge the batch system has been 
loaded or not,and user can choice to load the batch system automatically

Signed-off-by: huangdada <huangdada@huangdada-PC>