@import refs use destination file as relative root

@import refs are current generated relative to the project root. This PR makes it so @import refs use the destination file destination as the relative root.