Simplify few regexes and improve OpenLinkCommand

close #112