This code is highly Linux-specific so move it out of the core repository.
Collect all global settings in three hashes instead of bunch of unrelated global variables. Also use of os.path.join instead of str1 + "/" + str2.