[build] helpers: use shutil and os module only