correct hex of chmod.s and added an exit in the end

Signed-off-by: degrigis <fbi.gritti@gmail.com>