set condition to check if build dir exists and only delete if true
set condition to check if build dir exists and only delete if true
mod build file