Add check for previous installations

Install script shoud only be used for installations, not for updates