Fixed master discovery regex

Signed-off-by: Shashank Sahni <shredder12@gmail.com>