fixed installation script, now works properly