added file mode change for bash scripts