fixed failing deployment when no library is added and improved run script for linux