fix sys.libdir to include inputs
fix sys.update and sys.failsafe to include inputs
Add acceptance tests for new sys variables
Rename sys.update and sys.failsafe: add _policy_path
Merge pull request #872 from tzz/tzz/feature-sys-variables3

fix sys.libdir; fix and rename sys.update, sys.falsafe