fix bug that files for pm2 not created