Fix exec to set the mode

Nice approach! Will require a note in the Readme perhaps? People could get confused.