fix for OSX in session_name