Fix case-sensitivity issues, closes #50