Fixing small issues in shell scripts