pass original filename to resource when modifying sitemap
clean up some file path assumptions that were wrong & causing build to error & create extra files