fixed directory relative issue on fail from build