A constructive approach to minimal free resolutions of path ideals of trees