return error codes from bash on make fail; update output directories