better code; moved availabilityofcommands.sh to repo scripts