Add Jose's fix to opticharger

will allow for it to work with default /out and user defined /out