Ensure source and test directory exists