fix build and run scripts to work with SOC and ubuntu machines