Enhanced basic.sh flexibility. Fixed couple of bugs with paths.