more explicit checking of whether abspath is set