Fixed the bug for finding directories
Update ignored files
Fixed rakefile task order