Actually, there are a series of commands that act differently in AutoCAD 2009 and higher. However, the fix is easy.

Read up on the new initcommandversion function.