wrap all remaining getcwd() [RHBZ#1159300]

and also remember getcwd() before it is deleted and try to use it first instead of find_non_nfs_dir()
Fix nosync on aarch64

Aarch64 has only /usr/lib64 and no /usr/lib. Make nosync deal with it.
Remove substitutions in test scripts

Don't try to make substitutions in files which we don't distribute.
Install into correct sitelib when using Python 3

Tell automake that we're building for Python 3.
Be more specific when installing configs

The general wildcard picks up everything ending in cfg and I'd like to have my
development config that doesn't end up bundled in the RPM when building
locally.
Better log message for intial buildroot installation

The absolute path is not pretty and we're not doing an update.
Was: /usr/bin/yum update
Changed to: yum install
Don't output installation/build output when redirected

The installation and build output goes to stdout and to root.log/build.log. If
the output is redirected to a file, it means that no one is watching it in
realtime and there's no reason to duplicate it across two files. There are
multiple applications that capture mock's output (Koji, fedora-review). Because
some build logs can be tens of megabytes it is necessary that the duplication
is prevented.