Fixes dependency fetching to work with subdirectories. Also allows subdirectories within platform tags

This was necessary to get dependencies working.

cc @bryanhiggins @filmaj