Added command to set permissions for output directory