Remove "config" part of ROOT_DIR.
Solve permissions problem in script.