fix run.sh for X programs