updated to pull base dir from the argument passed in, rather than assuming where we are in the tree
make work when adding platforms from any directory