jrburke/almond — pull request #94 by gregpabian (2014-11-05 14:47:11+00:00)
Title: Always remove single dots from relative paths

Let's assume the following directory structure and files:
```
/
- plugin/
- extA.js
- extB.js
- lib/
- core/
- main.js
- foo.js
```
main.js:
```js
require(['../../plugin/extA', 'foo'], function (A, foo) {
//...
});
```

extA.js:
```js
define(['./extB'], function (B) {
//...
});
```

extB.js:
```js
define( function () {
//...
});
```

The `baseUrl` in the build configuration was set to `lib/core/`.

This scenario will fail to run in current implementation - because of the [line 77](https://github.com/gregpabian/almond/blob/master/almond.js#L77) that breaks the normalization Almond will try to load `../.././extB` instead of `../../extB`.