Make install script create a valid plist file

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