feat(ssh): support arguments as array
refactor(scripts): minor refactors and code conventions