1. Using /tmp when /root/scripts exists and not a dir
2. Add postfix to file by pid
3. Remove the script after executed