Improved fixperm script