ensure rewritten asset paths are correctly relative

fixes #3