changeimg: local_run and execute commands

Also switch from POSIX shell to bash