fix the mode bug when create file; add check_token func to check if the token is not >/>>/</&/| operator