Fix relative import in appnope

Closes gh-6409

Ping @minrk - this fix should go into appnope as well.