Fix resultDirectory when path is absolute but doesn't exist