Remove quotes from second include files and beyond

Was breaking local files like ~/myspecialfile as in quotes,
bash does not convert ~/ to $HOME.

Also move basename processing to localhost to avoid disclosing path
details to target server.