Set executable bit and renamed main file