Fixed pathing issue with 'outputdir'