add module context function to detect osx mavericks