Bugfix for atlas data files being created in directory from where the script was run rather than created in the target directory.