Fix specified output path - Thanks @b2z