You've screwed up your defines...

Instead of...

Define LCD_RSREG PORTB

you've written...

define RSREG PORTB

PICBasic doesn't error on define typo's, and you must have chosen the default setting in the option that works.