Respect --basepath configuration option in output
#457
+257
−281
--basepath configuration option in output
#457