Fix folder opening in a file explorer on Linux and Mac