updated to use the gradle properties to access the build directory