use dir for script not exec dir.
Detect specname properly.
Generate header properly every time. Still need to write regexp for suse header.