Extract operating system specific choosing of a suitable file manager calling executable to a separate method, as suggested by @bradgearon .
Fix broken :not selector in menu; needs element specified to work (i.e., body:not(.platform-darwin):not(.platform-win32) )