refactor
remove directory on error
fix regexp for '@import url()'