set_code_dirs check for existence