added basedir option for init command