Pulled out more regex to variables
Fixed problem with enabling proxy in ssh config.