add get_software_libdir function to modules.py, along with unit tests for it
add support in get_software_libdir to only retain library subdirs with certain files
fix remark
add import for any
Merge pull request #758 from boegel/get_software_libdir_only

add get_software_libdir function to modules.py, along with unit tests