Added common set up file, sourced from all existing shell scripts and moved base configuration block into common.
Moved count_files, get_relative_path and str_contains into common bash file. Also removed definitions of it from all other bash files.
Moved resolving of base dir back into setup files and use it as a prefix when finding setup_common.sh