fixed bug
creates directories better: new name is created for -c option