Refactor code to not expect file extension #1702