write log in deploymen root as build dir not present at start of build