Ashok | #2284 | Writing file to pwd if parent is null.