Fixed marking dirty files, checks for haskell source