Fixed bug: the file now correctly depends on the directory and not the other way around.