Changed to use find_library

Changed the code to use find_library function instead of some hard coded paths.