The -o option to specify an output and working directory works ONLY if the user specifies the name of a subdirectory of where render.pl and its companion files and directories are located.
If you specify a path elsewhere, the code won't generate the expected results.