Fixed script -o option for building multiple subdirs