Made output dir not hardcoded to target (needed for multi module builds