'found: work' could turn into 'foundork' if the directory name was '/w^H^H^H^Hork', or maybe using ^? depending on your system. I would open both scripts with vi so you can see control codes, ...
In this post I'll show you how to create a self extracting bash script to automate the installation of files on your system. This script requires coreutils (for cat, tail), awk, gzip, tar and bash.