fixed failure in build file if directories don't exist