fix trailing whitespaces
pass rospack instance as intended by gentools
reuse rospack instance in get_file_dependencies