move trees to non-fs build as they are now used in netlibs
fix the ugly code to extract folder name from the full path not to do off-by-one error
fix