get_stack () { if [[ ! -z $1 && $1 == "wc" ]];then ls $install_dir/stack | wc -l else ls $install_dir/stack | tail -1 fi }