Added executable rights.
Unified syntax of if-elses.