> The girl won't have a tarry sailor for a husband until she sees his money
A strict Victorian moralist might have found the theme offensive, and "dirty" may have meant no more than "despicable" or (colloquially) "lousy."
The OED cites, for example, Byron in 1819: "'Twas for his dirty fee, And not from any love to you."