add checking for user home (NOT verified on Linux, but written as crossplatform)