Fixes some errors in the main sh file