I have an answer for you and i am sure it will work. Boot up onto you macos x cd and run the install onto the mac os x drive that you installed x on and it i will just update and replace the files you have messed up on. it will not redo your system but just write the main files back onto you system like the windows set up does. i hope this helps.