make relative paths absolute dynamically