css from bower dependencies: convert relative paths correctly

generic solution instead of special cases
TODO: ext2 could be solved generic too
fix phantomjs test