adapted build resource script for "trunk-less" repository structure