fix sys.libdir, sys.update, sys.falsafe

@sigurdteigen sorry, I had some bugs in those variables in #871.  Please merge.