Add logic to remove build directory unless the --keep-build option is
specified.