Fixed /etc/profile permissions

Fixed a security problem with this script -- set permissions to 444 on /etc/profile after modification. Thanks to Github user ackalker for pointing this out.