Fix problem when ran as root on linux