Add quotes around $0 for DIR variable