Checking if dist dir exists when compiling.