adapt upload-dir path to change from snap to hakyll