fix: incorrect handling of OS specific depends in the 'tree' functionality