fix execution of sendToBuild, file mode