Correctly specify the output directory and remove any hardcoded relative paths