Fixed dirname and REPO_SRC