fix permissions on non-executable files