modify header script - now it create header for not empty file