Fix for the path in output. Should now give the right path and filename