Updated open command to use open on mac and xdg-open on linux