Fixing a bug resulting from not always having an absolute file path.