make ROOT_DIR autodedected