Fixed charmname to charmName in a chdir call.