Switch "dir" from alias to function