Trim trailing slash to prevent renaming issues
bug #33 Trim trailing slash to prevent renaming issues (adamelso)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Trim trailing slash to prevent renaming issues

The README suggests creating a new Symfony project with the command `symfony new blog/`. However the trailing slash makes the process throw an IOException, or at least this is true on OS X Yosemite. This PR will prevent this from happening.

With trailing slash

```bash
$ symfony new blogforranting/

 Downloading Symfony...
   10.44 MB/10.44 MB [▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋] 100%

 Preparing project...

  [Symfony\Component\Filesystem\Exception\IOException]
  Cannot rename "/Users/adam/Sites/blogforranting/Symfony/app" to "/Users/adam/Sites/blogforranting//../../Symfony/app/".

new name [version]
```

Without trailing slash

```bash
$ symfony new blogforranting

 Downloading Symfony...
   10.44 MB/10.44 MB [▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋▋] 100%

 Preparing project...

 ✔  Symfony was successfully installed. Now you can:

    * Configure your application in app/config/parameters.yml file.

    * Run your application:
        1. Execute the php app/console server:run command.
        2. Browse to the http://localhost:8000 URL.

    * Read the documentation at http://symfony.com/doc
```

Exception trace for first scenario:

```
Exception trace:
 () at /Users/adam/.composer/vendor/symfony/filesystem/Symfony/Component/Filesystem/Filesystem.php:264
 Symfony\Component\Filesystem\Filesystem->rename() at /Users/adam/.composer/vendor/symfony/symfony-installer/src/Symfony/Installer/NewCommand.php:154
 Symfony\Installer\NewCommand->extract() at /Users/adam/.composer/vendor/symfony/symfony-installer/src/Symfony/Installer/NewCommand.php:63
 Symfony\Installer\NewCommand->execute() at /Users/adam/.composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /Users/adam/.composer/vendor/symfony/console/Symfony/Component/Console/Application.php:889
 Symfony\Component\Console\Application->doRunCommand() at /Users/adam/.composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at /Users/adam/.composer/vendor/symfony/console/Symfony/Component/Console/Application.php:124
 Symfony\Component\Console\Application->run() at /Users/adam/.composer/vendor/symfony/symfony-installer/symfony:16
```

Commits
-------

79f6c90 Trim trailing slash to prevent renaming issues