Fixed problem with filenames containing $ (e.g. Java classes).