Adding ability to execute main.r from anywhere. YAML file must contain full paths.