builder/docker: Fixed hang on prompt while copying script, fixes #1656