Tweaked sh scripts