now using the more portable readlink -f trick
added .sh to executable scripts