Fix segfault in non-dev build by adding extra check for NULL.
Fix out of tree build.

common/include/svnrev.h was generated inside the build directory
instead of the source directory.

Revert binary -> source dir change.
Merge branch 'master' of github.com:roelaaij/pcsx2
Revert unecessary binary -> source dir change.