Fix at least one of the bugs with getting a logical_path from shadowed root paths.

Added a test case to cover the fix. Without the fix `pathname_plus_shadowed_dir(fixture_path("default-shadowed/application.js")).logical_path` returns `../default-shadowed/application.js`.

Please let me know if there is another know problem case that we need to try coding around (or at least document).