Err, you have defined the abspath two times in same scope.
Have you actually compiled your code successfully?