You need to add the folder that lilypond is in to your $PATH. Then,
linux will know to look in that folder as well for executables,
regardless of which directory you're actually in. Apparently on linux,
according to carl, you add to your /home/tomc/~.bashrc: