Remove hardcoded build path and replace with macro