Fixing permissions problem with script.