build: avoid printing errors caused by 'complete'
'complete' command is a bashism: that means that it could cause some errors on other shells.
Avoid this kind of error.