handle relative paths for --preload option