fixed rails installations problem with -sudo command