in Swagger.php, use dirname instead of grepping for slash, which could be / or \
Merge pull request #36 from mrjf/master

in Swagger.php, use dirname instead of grepping for slash, which could be / or \