fixed regex for path with uppercase

Addresses #562