new sys variables: inputdir, masterdir, libdir, bindir, failsafe, update, local_libdir
Merge pull request #871 from tzz/tzz/feature-sys-variables2

new sys variables: inputdir, masterdir, libdir, bindir, failsafe, update, local_libdir