make runscript bash comptatible for instances