Handle empty changes files
Improve return code handling