autobuild: fix warnings due to cp command exit error