[utils] Introduce expand_path