fixed working directory for shell execution
deleted auto-constructed files
moved scan.sh to literate-resting repo
modified for literate-resting