You need to use the ROOT_PATH, this line will work fine in most cases but not when w3af is installed as a python module.