fix permissions on script