Set the api dir from the source dir parameter.
Merge pull request #38 from Cadair/clean_api_dir

Set the api dir from the source dir variable