Checks permissions for bash scripts.