Fixed startup scripts in ex1 to enable working with Rio, modified test-examples script to allow testing with rio