Fixing testsuite_current_shell for OS X