move update to bin instead of symlinking, remove detectos, add detect os to vars, cleanup e function