Fixes #630

Test cases had a bug too. Actual _filename_ passed to `get_relative_path` starts with a slash.