Make install script create a valid plist file

Also works now if `DYLD_INSERT_LIBRARIES` was set to something else.