apply permission hack only for debian