Update the filepath on makeDirty depending on set conditional