Fix some bugs to do with the HOME, which breaks when we sudo
Add SRC_DIR