Keep button disabled when not replacing path
And change 'paths' to 'path'.