Scientists have uncovered an unexpected potential treatment for persistent nail infections, using a gas best known for its foul smell.