North Berwick maintained their unbeaten start to the league campaign with a hard-fought victory over Linlithgow at Recreation Park.