Fixed the output folder problem

There was a problem where the output folder was not there, due
to the fact that it was accidentally made outside the original
directory. It is now fixed.