How can I simplify this simple code?

Assuming current(dir) returns the numerical angle, you can do this:

absRollAngle=(current(dir)+360)%360;

http://arduino.cc/en/Reference/Modulo