fix lastpos file encoding in non utf-8 environment
advanced dependencies version