Fix bug in name of argument that contains directories