In the exercise of their functions under this Part of this Act relating to the making of public path creation agreements and public path creation orders it shall be the duty of councils and joint planning boards to have due regard to the needs of agriculture and forestry.