Fixed bitmag.sh to use correct basedir.