Extract path into variables.