Migrate to safer relative references

When using files from the CLI rather than a web context, directory
relative paths will resolve differently.