Maybe you should try this instead. It's guaranteed to fix the computer (probably 😀.)
Install or Reinstall OS X from Scratch
Be sure you have backed up your files because the following procedure will remove everything from the hard drive.
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears.
Erase the hard drive:
1. Select Disk Utility from the main menu and click on the Continue button.
2. When the recovery menu appears select Disk Utility and press the Continue button.
3. After Disk Utility loads select the indented Macintosh HD entry from the the left side
list. Click on the Erase tab in the toolbar.. Set the Format Type to Mac OS Extended,
ournaled from the dropdown menu. Click on the Erase button. Wait until the operation
completes, then quit Disk Utility and return to the main menu.
4. Reinstall OS X: Select Reinstall OS X and click on the Install button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible
because it is three times faster than wireless.
This should install the version of OS X that you had installed.