Fix permission on cmd files