Fixed file mode of after_success script.