Make sure parent is interpreated as dir