Use absolute path in require and catch nil file_name in writer