Fixes a last minute bug where the path was not being modified correctly when it did not end in semicolon.