fixing file permission on electric
fixed a white space issue
corrected sed line ending handling