Allow running gensampledata from any directory.