correction to read directory in sox trim