fix: Issue 1360- -y to copy was not copyinh the HPCARCH properly + rebase

improved the code with Bruno review

fixing linting issues
2 jobs for iss#1360
in 0 seconds, using 0 compute credits, and was queued for 0 seconds
latest