Update deprecated ctx.action usage to ctx.actions.{run,run_shell}
Update deprecated ctx.action usage to ctx.actions.{run,run_shell}

Also the `use_default_shell_env parameter` is added where appropriate.

Without it, build fails on Linux distributions with unusual handling
 of PATH variable, such as NixOS.

google/copybara,google/copybara,google/copybara