Added section where it detects mac or windows, so that I dont need to keep editing the same location info.