Slight tweak to helpers.adjustFilepath