After multiple problems with understanding where the script is looking for map-gen-settings and map-settings I understood that it was looking in root factorio/directory.
Alternatively I'd like to propose either :
Error message specification that the program is looking for the map-gen-settings in factorio root directory
Accepting files from any place in the file system via relative or absolute path (unfortunately I lack bash skills to be able to provide solution myself)
After multiple problems with understanding where the script is looking for map-gen-settings and map-settings I understood that it was looking in root factorio/directory.
Alternatively I'd like to propose either :