added creating backup to check_build function;
backup gitignored.