Fixed security issue with usage of /tmp